package com.hongawen.designmode.test接口隔离;

public class Test {

    public static void main(String[] args) {
        ConcreteClass concreteClass = new ConcreteClass();
        concreteClass.read();
        concreteClass.draw();

        ChartHandler chartHandler = concreteClass;
        chartHandler.draw();

        DataHandler dataHandler  = concreteClass;
        dataHandler.read();

    }

}
